import { useCookies } from "@vueuse/integrations/useCookies";

// 存储在 Cookie 中的 ArticleId 的 key
const ARTICLE_KEY = 'CurrentPageArticleId'
const cookie = useCookies()

// 获取 ArticleId 值
export function getArticleId() {
    return cookie.get(ARTICLE_KEY)
}

// 设置 ArticleId 到 Cookie 中
export function setArticleId(id) {
    return cookie.set(ARTICLE_KEY, id)
}

// 删除 ArticleId
export function removeArticleId() {
    return cookie.remove(ARTICLE_KEY)
}